package cn.sumpu.app.guoguojie.domain;

import java.io.Serializable;
import java.util.Date;

import cn.sumpu.app.guoguojie.constant.Expression;
import cn.sumpu.app.guoguojie.util.Common;

public class Comment implements Serializable {

	private static final long serialVersionUID = 4518309269850152507L;

	private String identifier;
	private String member;
	private String content;
	private String commentId;
	private String commentIdType;
	private String postIp;
	private Boolean enabled;
	private Date gmtCreated;
	private Date gmtModified;
	private String owner;
	private String ownerType;
	//会员信息
	private String username;
	private String nickname;
	private String memberAvatar;
	private String memberImageServer;
	private String ownerAvatar;
	private String ownerImageServer;
	private String memberApproveStatus;
	private String doorplate;
	
	//评论的类型对应的微博和日志信息
	private Doing doing;
	//对某一条微博/日志评论的数量
	private Integer commentCount;
	
	private String replyCommentId;
	
	private String toFamily;
	
	private String commentPic;
	

	public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getCommentPic() {
        return commentPic;
    }

    public void setCommentPic(String commentPic) {
        this.commentPic = commentPic;
    }

    public String getToFamily() {
		return toFamily;
	}

	public void setToFamily(String toFamily) {
		this.toFamily = toFamily;
	}

	public String getReplyCommentId() {
		return replyCommentId;
	}

	public void setReplyCommentId(String replyCommentId) {
		this.replyCommentId = replyCommentId;
	}

	public Integer getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}

	public String getDoorplate() {
		return doorplate;
	}

	public void setDoorplate(String doorplate) {
		this.doorplate = doorplate;
	}

	public Doing getDoing() {
		return doing;
	}

	public void setDoing(Doing doing) {
		this.doing = doing;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getMember() {
		return member;
	}

	public void setMember(String member) {
		this.member = member;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCommentId() {
		return commentId;
	}

	public void setCommentId(String commentId) {
		this.commentId = commentId;
	}

	public String getCommentIdType() {
		return commentIdType;
	}

	public void setCommentIdType(String commentIdType) {
		this.commentIdType = commentIdType;
	}

	public String getPostIp() {
		return postIp;
	}

	public void setPostIp(String postIp) {
		this.postIp = postIp;
	}

	public Date getGmtCreated() {
		return gmtCreated;
	}

	public void setGmtCreated(Date gmtCreated) {
		this.gmtCreated = gmtCreated;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public String getReplaceContent() {
		return Common.atContentRep(Expression.replaceAll(content));
	}

	public String getMemberAvatar() {
		return memberAvatar;
	}

	public void setMemberAvatar(String memberAvatar) {
		this.memberAvatar = memberAvatar;
	}

	public String getMemberImageServer() {
		return memberImageServer;
	}

	public void setMemberImageServer(String memberImageServer) {
		this.memberImageServer = memberImageServer;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getOwnerType() {
		return ownerType;
	}

	public void setOwnerType(String ownerType) {
		this.ownerType = ownerType;
	}

	public String getOwnerAvatar() {
		return ownerAvatar;
	}

	public void setOwnerAvatar(String ownerAvatar) {
		this.ownerAvatar = ownerAvatar;
	}

	public String getOwnerImageServer() {
		return ownerImageServer;
	}

	public void setOwnerImageServer(String ownerImageServer) {
		this.ownerImageServer = ownerImageServer;
	}
	
	
	public String getLastDate() {
		return Common.getDate(this.getGmtCreated());
	}

	public String getMemberApproveStatus() {
		return memberApproveStatus;
	}

	public void setMemberApproveStatus(String memberApproveStatus) {
		this.memberApproveStatus = memberApproveStatus;
	}
	public String getShowContent(){
	        return Common.parseGuouojUrl(Common.atContentRep(Expression.replaceAll(content)),null);
	}
	 public String getShowCommentContent(){
	        return Common.nl2br(getShowContent());
	 }
}
